package com.bolang.onlycode.demo.designPatterns.decorator;

public class EggDecorator extends PancakesDecotator{


    public EggDecorator(AbstractPancakes abstractPancakes) {
        super(abstractPancakes);
    }
    @Override
    protected String getMsg(){
        return super.getMsg()+"1个鸡蛋";
    }
    @Override
    protected int getPrice(){
        return super.getPrice()+1;
    }

}
